package com.git.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.git.domain.BaseDataResponse;
import com.git.domain.BaseResponse;
import com.git.domain.ResultCode;
import com.git.service.DemoService;

/**
 * a接口需要修改，更新到了3.0版本,需要继承1.0版本，然后重写a接口
 * @author wangquan
 *
 */
@Component(DemoControllerExchange.PRE+"3.0")
public class DemoController3 extends DemoController1 implements DemoController{
	@Autowired
	private DemoService demoService;
	@Override
	public BaseResponse a(HttpServletRequest request, Integer id) {
		return new BaseDataResponse<String>(ResultCode.SUCCESSFUL_CODE, "version:3.0");
	}
}
